package com.sixseven.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * @author Belly
 * @version 1.1.0
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("cowry")
public class Cowry {
    @TableId(type = IdType.AUTO)
    private Integer id;
    @NotEmpty
    private String name;
    @NotNull
    private BigDecimal price;
    @NotEmpty
    private String imgPath;
    @NotNull
    private Integer stock;
    @NotNull
    private Integer sales;
    @NotNull
    private Integer status;
}
